Ext.onReady(function() {
	var _tabpanel = new Ext.TabPanel({
	    activeTab: 0,
	    items: [{
	        title: 'Tab 1',
	        html: 'A simple tab'
	    },{
	        title: 'Tab 2',
	        autoLoad:'tabpanel.js',
	        //是否有关闭按钮
	        closable:true , 
	        //延时加载
	        bufferResize: true
	    }]
	});

	new Ext.Viewport( {
		layout : 'fit',
		items : _tabpanel
	});
});